.image-audit-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
}

.upload-container {
    margin: 20px 0;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    min-height: 200px;
}

.upload-area:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.upload-icon {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 10px;
}

.upload-tip {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.button-group {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.audit-btn, .clear-btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.audit-btn {
    background: #3498db;
    color: white;
}

.audit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.audit-btn:hover:not(:disabled) {
    background: #2980b9;
}

.clear-btn {
    background: #e74c3c;
    color: white;
}

.clear-btn:hover {
    background: #c0392b;
}

.result-area {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.result-content {
    margin-top: 10px;
}

.result-item {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    background: white;
}

.result-item.success {
    border-left: 4px solid #2ecc71;
}

.result-item.warning {
    border-left: 4px solid #f1c40f;
}

.result-item.error {
    border-left: 4px solid #e74c3c;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    min-height: 150px;
    padding: 15px;
}

.upload-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.preview-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.preview-item img {
    width: 100%;
    height: calc(100% - 20px); /* 减去文件名的高度 */
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
}

.preview-item .file-name {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 5px;
}

.preview-item .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.preview-item .remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    color: #666;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.export-btn {
    padding: 8px 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: #27ae60;
}

.result-table {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #f8f9fa;
    font-weight: 500;
}

.status-success {
    color: #2ecc71;
}

.status-warning {
    color: #f1c40f;
}

.status-error {
    color: #e74c3c;
}

.details-btn {
    padding: 5px 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.details-btn:hover {
    background: #2980b9;
}

.upload-progress-container {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.upload-progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
    position: relative;
}

.upload-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #3498db, #2980b9);
    transition: width 0.2s ease;
}

.upload-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.upload-file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
    margin-right: 10px;
}

.dragover {
    border-color: #3498db !important;
    background-color: rgba(52, 152, 219, 0.05) !important;
}

.upload-area.dragover {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .preview-item img {
        height: 100px;
    }
}

.preview-item.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.preview-item.loading::before {
    content: '加载中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    z-index: 1;
}

.image-list {
    margin-top: 30px;
}

.unchecked-section,
.checked-section {
    margin-bottom: 30px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.image-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-info {
    padding: 10px;
}

.image-info span {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.image-item button {
    width: 100%;
    padding: 5px;
    border: none;
    border-radius: 4px;
    background: #3498db;
    color: white;
    cursor: pointer;
}

.image-item button:hover {
    background: #2980b9;
}

.checked .image-info button {
    background: #2ecc71;
}

.checked .image-info button:hover {
    background: #27ae60;
}

.delete-btn {
    background: #e74c3c !important;
}

.delete-btn:hover {
    background: #c0392b !important;
}

.audit-all-btn {
    margin-bottom: 15px;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.audit-all-btn:hover {
    background: #2980b9;
}

.export-all-btn {
    margin-bottom: 15px;
    padding: 8px 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.export-all-btn:hover {
    background: #27ae60;
}

.audit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #333;
}

.audit-details {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.audit-details li {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.detail-type {
    font-weight: bold;
    color: #e74c3c;
    display: block;
    margin-bottom: 5px;
}

.detail-msg {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.detail-probability {
    display: block;
    color: #999;
    font-size: 12px;
}

/* 添加图片边框样式 */
.status-error-border {
    border: 2px solid #e74c3c;
    cursor: pointer;
}

.status-warning-border {
    border: 2px solid #f1c40f;
    cursor: pointer;
}

.image-item img {
    transition: transform 0.2s ease;
}

.image-item img:hover {
    transform: scale(1.05);
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.audit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.image-container:hover .audit-overlay {
    opacity: 1;
}

.audit-summary {
    color: white;
    text-align: center;
    width: 100%;
}

.audit-reason {
    background: rgba(231, 76, 60, 0.9);
    border-radius: 4px;
    padding: 5px 8px;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reason-type {
    font-size: 14px;
    font-weight: bold;
}

.reason-probability {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
}

/* 修改图片容器样式 */
.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* 状态边框样式 */
.status-error-border {
    border: 2px solid #e74c3c;
}

.status-warning-border {
    border: 2px solid #f1c40f;
}

.status-success-border {
    border: 2px solid #2ecc71;
}

.url-audit-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.url-input-group {
    display: flex;
    gap: 10px;
}

.url-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.url-input:focus {
    border-color: #3498db;
    outline: none;
}

.url-audit-btn {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.url-audit-btn:hover {
    background: #2980b9;
}

.url-audit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.api-doc-link {
    padding: 8px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.api-doc-link:hover {
    background: #2980b9;
} 